.class public Lcom/brixd/niceapp/util/ShareUtils;
.super Ljava/lang/Object;
.source "ShareUtils.java"


# direct methods
.method public constructor <init>()V
    .registers 1

    .prologue
    .line 34
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method static synthetic access$000(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;I)V
    .registers 4
    .param p0, "x0"    # Landroid/content/Context;
    .param p1, "x1"    # Ljava/lang/String;
    .param p2, "x2"    # Ljava/lang/String;
    .param p3, "x3"    # I

    .prologue
    .line 34
    invoke-static {p0, p1, p2, p3}, Lcom/brixd/niceapp/util/ShareUtils;->traceEvent(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;I)V

    return-void
.end method

.method public static getCommunityShareUrl(ILjava/lang/String;)Ljava/lang/String;
    .registers 4
    .param p0, "appId"    # I
    .param p1, "source"    # Ljava/lang/String;

    .prologue
    .line 92
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "http://zuimeia.com/community/app/"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "/?platform="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "&utm_source="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "&utm_campaign=referral&utm_medium=androidapp_share_tool"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method private static getEvernoteContent(Lcom/brixd/niceapp/model/BaseAppModel;Lcom/evernote/edam/type/Note;)Ljava/lang/String;
    .registers 12
    .param p0, "appModel"    # Lcom/brixd/niceapp/model/BaseAppModel;
    .param p1, "note"    # Lcom/evernote/edam/type/Note;

    .prologue
    .line 181
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    .line 182
    .local v0, "builder":Ljava/lang/StringBuilder;
    const-string v7, "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!DOCTYPE en-note SYSTEM \"http://xml.evernote.com/pub/enml2.dtd\"><en-note>"

    invoke-virtual {v0, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 183
    invoke-virtual {p0}, Lcom/brixd/niceapp/model/BaseAppModel;->getDigest()Ljava/lang/String;

    move-result-object v7

    const-string v8, "<br>"

    const-string v9, "<br/>"

    invoke-virtual {v7, v8, v9}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v0, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 184
    instance-of v7, p0, Lcom/brixd/niceapp/model/AppModel;

    if-eqz v7, :cond_7c

    .line 185
    invoke-virtual {p0}, Lcom/brixd/niceapp/model/BaseAppModel;->getContent()Ljava/lang/String;

    move-result-object v7

    invoke-static {v7}, Lorg/jsoup/Jsoup;->parseBodyFragment(Ljava/lang/String;)Lorg/jsoup/nodes/Document;

    move-result-object v1

    .line 186
    .local v1, "document":Lorg/jsoup/nodes/Document;
    invoke-virtual {v1}, Lorg/jsoup/nodes/Document;->body()Lorg/jsoup/nodes/Element;

    move-result-object v7

    invoke-virtual {v7}, Lorg/jsoup/nodes/Element;->getAllElements()Lorg/jsoup/select/Elements;

    move-result-object v4

    .line 188
    .local v4, "elements":Lorg/jsoup/select/Elements;
    invoke-virtual {v4}, Lorg/jsoup/select/Elements;->iterator()Ljava/util/Iterator;

    move-result-object v7

    :goto_31
    invoke-interface {v7}, Ljava/util/Iterator;->hasNext()Z

    move-result v8

    if-eqz v8, :cond_4d

    invoke-interface {v7}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lorg/jsoup/nodes/Element;

    .line 189
    .local v3, "element":Lorg/jsoup/nodes/Element;
    const-string v8, "id"

    invoke-virtual {v3, v8}, Lorg/jsoup/nodes/Element;->removeAttr(Ljava/lang/String;)Lorg/jsoup/nodes/Node;

    .line 190
    const-string v8, "class"

    invoke-virtual {v3, v8}, Lorg/jsoup/nodes/Element;->removeAttr(Ljava/lang/String;)Lorg/jsoup/nodes/Node;

    .line 191
    const-string v8, "data"

    invoke-virtual {v3, v8}, Lorg/jsoup/nodes/Element;->removeAttr(Ljava/lang/String;)Lorg/jsoup/nodes/Node;

    goto :goto_31

    .line 193
    .end local v3    # "element":Lorg/jsoup/nodes/Element;
    :cond_4d
    invoke-virtual {v1}, Lorg/jsoup/nodes/Document;->body()Lorg/jsoup/nodes/Element;

    move-result-object v7

    invoke-virtual {v7}, Lorg/jsoup/nodes/Element;->html()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v0, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 205
    .end local v1    # "document":Lorg/jsoup/nodes/Document;
    .end local v4    # "elements":Lorg/jsoup/select/Elements;
    :cond_58
    :goto_58
    const-string v7, "</en-note>"

    invoke-virtual {v0, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 206
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    const-string v8, "share content:"

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-static {v7}, Lcom/zuiapps/suite/utils/log/LogUtil;->i(Ljava/lang/String;)V

    .line 207
    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    return-object v7

    .line 194
    :cond_7c
    instance-of v7, p0, Lcom/brixd/niceapp/community/model/CommunityAppModel;

    if-eqz v7, :cond_58

    .line 196
    :try_start_80
    new-instance v6, Lorg/json/JSONArray;

    invoke-virtual {p0}, Lcom/brixd/niceapp/model/BaseAppModel;->getContent()Ljava/lang/String;

    move-result-object v7

    invoke-direct {v6, v7}, Lorg/json/JSONArray;-><init>(Ljava/lang/String;)V

    .line 197
    .local v6, "images":Lorg/json/JSONArray;
    const/4 v5, 0x0

    .local v5, "i":I
    :goto_8a
    invoke-virtual {v6}, Lorg/json/JSONArray;->length()I

    move-result v7

    if-ge v5, v7, :cond_58

    .line 198
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    const-string v8, "<p><img src=\""

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v6, v5}, Lorg/json/JSONArray;->optString(I)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, "\" /></p>"

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v0, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
    :try_end_b0
    .catch Lorg/json/JSONException; {:try_start_80 .. :try_end_b0} :catch_b3

    .line 197
    add-int/lit8 v5, v5, 0x1

    goto :goto_8a

    .line 200
    .end local v5    # "i":I
    .end local v6    # "images":Lorg/json/JSONArray;
    :catch_b3
    move-exception v2

    .line 201
    .local v2, "e":Lorg/json/JSONException;
    invoke-virtual {v2}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_58
.end method

.method public static getNiceGoodsShareUrl(ILjava/lang/String;)Ljava/lang/String;
    .registers 5
    .param p0, "articleId"    # I
    .param p1, "source"    # Ljava/lang/String;

    .prologue
    .line 86
    const-string v0, ""

    .line 87
    .local v0, "shareStr":Ljava/lang/String;
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "http://zuimeia.com/article/"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "/?utm_source="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "&utm_campaign=referral&utm_medium=androidapp_share_tool"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 88
    return-object v0
.end method

.method public static getShareUrl(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    .registers 5
    .param p0, "appTitle"    # Ljava/lang/String;
    .param p1, "source"    # Ljava/lang/String;

    .prologue
    .line 79
    const-string v0, ""

    .line 80
    .local v0, "shareStr":Ljava/lang/String;
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "http://zuimeia.com/app/title/"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "utf-8"

    invoke-static {p0, v2}, Landroid/net/Uri;->encode(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "/?utm_source="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "&utm_campaign=referral&utm_medium=androidapp_share_tool"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 82
    return-object v0
.end method

.method public static share(Landroid/content/Context;Lcom/brixd/niceapp/model/BaseAppModel;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcn/sharesdk/onekeyshare/ShareContentCustomizeCallback;Lcn/sharesdk/framework/PlatformActionListener;)V
    .registers 19
    .param p0, "context"    # Landroid/content/Context;
    .param p1, "appModel"    # Lcom/brixd/niceapp/model/BaseAppModel;
    .param p2, "shareText"    # Ljava/lang/String;
    .param p3, "imageFilePath"    # Ljava/lang/String;
    .param p4, "urlForWechat"    # Ljava/lang/String;
    .param p5, "platform"    # Ljava/lang/String;
    .param p6, "callback"    # Lcn/sharesdk/onekeyshare/ShareContentCustomizeCallback;
    .param p7, "platformActionListener"    # Lcn/sharesdk/framework/PlatformActionListener;

    .prologue
    .line 39
    invoke-virtual {p1}, Lcom/brixd/niceapp/model/BaseAppModel;->getTitle()Ljava/lang/String;

    move-result-object v4

    .line 40
    .local v4, "title":Ljava/lang/String;
    invoke-virtual {p1}, Lcom/brixd/niceapp/model/BaseAppModel;->getSubTitle()Ljava/lang/String;

    move-result-object v5

    .line 42
    .local v5, "subTitle":Ljava/lang/String;
    invoke-static {p0}, Lcn/sharesdk/framework/ShareSDK;->initSDK(Landroid/content/Context;)V

    .line 44
    new-instance v8, Lcn/sharesdk/onekeyshare/OnekeyShare;

    invoke-direct {v8}, Lcn/sharesdk/onekeyshare/OnekeyShare;-><init>()V

    .line 45
    .local v8, "oks":Lcn/sharesdk/onekeyshare/OnekeyShare;
    const v1, 0x7f020187

    invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f0c0011

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v8, v1, v2}, Lcn/sharesdk/onekeyshare/OnekeyShare;->setNotification(ILjava/lang/String;)V

    .line 46
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-static {v5}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_7f

    const-string v1, ""

    :goto_32
    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v8, v1}, Lcn/sharesdk/onekeyshare/OnekeyShare;->setTitle(Ljava/lang/String;)V

    .line 47
    const v9, 0x7f0201c9

    const v1, 0x7f0c006d

    invoke-virtual {p0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v10

    new-instance v1, Lcom/brixd/niceapp/util/ShareUtils$1;

    move-object v2, p0

    move-object v3, p1

    move-object v6, p2

    move-object v7, p3

    invoke-direct/range {v1 .. v8}, Lcom/brixd/niceapp/util/ShareUtils$1;-><init>(Landroid/content/Context;Lcom/brixd/niceapp/model/BaseAppModel;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcn/sharesdk/onekeyshare/OnekeyShare;)V

    invoke-virtual {v8, v9, v10, v1}, Lcn/sharesdk/onekeyshare/OnekeyShare;->setCustomerLogo(ILjava/lang/String;Landroid/view/View$OnClickListener;)V

    .line 59
    const-string v1, "<br>"

    const-string v2, "\n"

    invoke-virtual {p2, v1, v2}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v8, v1}, Lcn/sharesdk/onekeyshare/OnekeyShare;->setText(Ljava/lang/String;)V

    .line 60
    if-eqz p3, :cond_63

    .line 61
    invoke-virtual {v8, p3}, Lcn/sharesdk/onekeyshare/OnekeyShare;->setImagePath(Ljava/lang/String;)V

    .line 63
    :cond_63
    invoke-virtual {v8, p4}, Lcn/sharesdk/onekeyshare/OnekeyShare;->setUrl(Ljava/lang/String;)V

    .line 65
    if-eqz p5, :cond_93

    .line 66
    move-object/from16 v0, p5

    invoke-virtual {v8, v0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->setPlatform(Ljava/lang/String;)V

    .line 67
    const/4 v1, 0x1

    invoke-virtual {v8, v1}, Lcn/sharesdk/onekeyshare/OnekeyShare;->setSilent(Z)V

    .line 72
    :goto_71
    move-object/from16 v0, p7

    invoke-virtual {v8, v0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->setCallback(Lcn/sharesdk/framework/PlatformActionListener;)V

    .line 73
    move-object/from16 v0, p6

    invoke-virtual {v8, v0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->setShareContentCustomizeCallback(Lcn/sharesdk/onekeyshare/ShareContentCustomizeCallback;)V

    .line 75
    invoke-virtual {v8, p0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->show(Landroid/content/Context;)V

    .line 76
    return-void

    .line 46
    :cond_7f
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, " - "

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    goto :goto_32

    .line 69
    :cond_93
    const/4 v1, 0x0

    invoke-virtual {v8, v1}, Lcn/sharesdk/onekeyshare/OnekeyShare;->setSilent(Z)V

    goto :goto_71
.end method

.method public static shareToEvernote(Landroid/content/Context;Lcom/brixd/niceapp/model/BaseAppModel;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .registers 17
    .param p0, "context"    # Landroid/content/Context;
    .param p1, "appModel"    # Lcom/brixd/niceapp/model/BaseAppModel;
    .param p2, "title"    # Ljava/lang/String;
    .param p3, "subTitle"    # Ljava/lang/String;
    .param p4, "shareText"    # Ljava/lang/String;
    .param p5, "imageFilePath"    # Ljava/lang/String;

    .prologue
    .line 97
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v7, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-static {p3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v7

    if-eqz v7, :cond_63

    const-string v7, ""

    :goto_11
    invoke-virtual {v8, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    .line 98
    .local v5, "shareTitle":Ljava/lang/String;
    instance-of v7, p1, Lcom/brixd/niceapp/community/model/CommunityAppModel;

    if-eqz v7, :cond_77

    invoke-virtual {p1}, Lcom/brixd/niceapp/model/BaseAppModel;->getId()I

    move-result v7

    const-string v8, "evernote"

    invoke-static {v7, v8}, Lcom/brixd/niceapp/util/ShareUtils;->getCommunityShareUrl(ILjava/lang/String;)Ljava/lang/String;

    move-result-object v6

    .line 133
    .local v6, "shareUrl":Ljava/lang/String;
    :goto_27
    const-string v7, "dev113"

    const-string v8, "735f36e03db8a510"

    sget-object v9, Lcom/brixd/niceapp/constant/ApiConstants;->EVERNOTE_SERVICE:Lcom/evernote/client/android/EvernoteSession$EvernoteService;

    const/4 v10, 0x1

    invoke-static {p0, v7, v8, v9, v10}, Lcom/evernote/client/android/EvernoteSession;->getInstance(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lcom/evernote/client/android/EvernoteSession$EvernoteService;Z)Lcom/evernote/client/android/EvernoteSession;

    move-result-object v0

    .line 136
    .local v0, "evernoteSession":Lcom/evernote/client/android/EvernoteSession;
    invoke-virtual {v0}, Lcom/evernote/client/android/EvernoteSession;->isLoggedIn()Z

    move-result v7

    if-eqz v7, :cond_89

    .line 137
    new-instance v2, Lcom/brixd/niceapp/util/ShareUtils$2;

    invoke-direct {v2}, Lcom/brixd/niceapp/util/ShareUtils$2;-><init>()V

    .line 161
    .local v2, "mNoteCreateCallback":Lcom/evernote/client/android/OnClientCallback;, "Lcom/evernote/client/android/OnClientCallback<Lcom/evernote/edam/type/Note;>;"
    :try_start_3d
    new-instance v3, Lcom/evernote/edam/type/Note;

    invoke-direct {v3}, Lcom/evernote/edam/type/Note;-><init>()V

    .line 162
    .local v3, "note":Lcom/evernote/edam/type/Note;
    invoke-virtual {v3, v5}, Lcom/evernote/edam/type/Note;->setTitle(Ljava/lang/String;)V

    .line 164
    new-instance v4, Lcom/evernote/edam/type/NoteAttributes;

    invoke-direct {v4}, Lcom/evernote/edam/type/NoteAttributes;-><init>()V

    .line 165
    .local v4, "noteAttributes":Lcom/evernote/edam/type/NoteAttributes;
    invoke-virtual {v4, v6}, Lcom/evernote/edam/type/NoteAttributes;->setSourceURL(Ljava/lang/String;)V

    .line 166
    invoke-virtual {v3, v4}, Lcom/evernote/edam/type/Note;->setAttributes(Lcom/evernote/edam/type/NoteAttributes;)V

    .line 168
    invoke-static {p1, v3}, Lcom/brixd/niceapp/util/ShareUtils;->getEvernoteContent(Lcom/brixd/niceapp/model/BaseAppModel;Lcom/evernote/edam/type/Note;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v3, v7}, Lcom/evernote/edam/type/Note;->setContent(Ljava/lang/String;)V

    .line 169
    invoke-virtual {v0}, Lcom/evernote/client/android/EvernoteSession;->getClientFactory()Lcom/evernote/client/android/ClientFactory;

    move-result-object v7

    invoke-virtual {v7}, Lcom/evernote/client/android/ClientFactory;->createNoteStoreClient()Lcom/evernote/client/android/AsyncNoteStoreClient;

    move-result-object v7

    invoke-virtual {v7, v3, v2}, Lcom/evernote/client/android/AsyncNoteStoreClient;->createNote(Lcom/evernote/edam/type/Note;Lcom/evernote/client/android/OnClientCallback;)V
    :try_end_62
    .catch Ljava/lang/Exception; {:try_start_3d .. :try_end_62} :catch_82

    .line 177
    .end local v2    # "mNoteCreateCallback":Lcom/evernote/client/android/OnClientCallback;, "Lcom/evernote/client/android/OnClientCallback<Lcom/evernote/edam/type/Note;>;"
    .end local v3    # "note":Lcom/evernote/edam/type/Note;
    .end local v4    # "noteAttributes":Lcom/evernote/edam/type/NoteAttributes;
    :goto_62
    return-void

    .line 97
    .end local v0    # "evernoteSession":Lcom/evernote/client/android/EvernoteSession;
    .end local v5    # "shareTitle":Ljava/lang/String;
    .end local v6    # "shareUrl":Ljava/lang/String;
    :cond_63
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    const-string v9, " - "

    invoke-virtual {v7, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    goto :goto_11

    .line 98
    .restart local v5    # "shareTitle":Ljava/lang/String;
    :cond_77
    invoke-virtual {p1}, Lcom/brixd/niceapp/model/BaseAppModel;->getTitle()Ljava/lang/String;

    move-result-object v7

    const-string v8, "evernote"

    invoke-static {v7, v8}, Lcom/brixd/niceapp/util/ShareUtils;->getShareUrl(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    goto :goto_27

    .line 170
    .restart local v0    # "evernoteSession":Lcom/evernote/client/android/EvernoteSession;
    .restart local v2    # "mNoteCreateCallback":Lcom/evernote/client/android/OnClientCallback;, "Lcom/evernote/client/android/OnClientCallback<Lcom/evernote/edam/type/Note;>;"
    .restart local v6    # "shareUrl":Ljava/lang/String;
    :catch_82
    move-exception v1

    .line 171
    .local v1, "ex":Ljava/lang/Exception;
    const-string v7, "Error creating notestore"

    invoke-static {v7, v1}, Lcom/zuiapps/suite/utils/log/LogUtil;->e(Ljava/lang/String;Ljava/lang/Throwable;)V

    goto :goto_62

    .line 174
    .end local v1    # "ex":Ljava/lang/Exception;
    .end local v2    # "mNoteCreateCallback":Lcom/evernote/client/android/OnClientCallback;, "Lcom/evernote/client/android/OnClientCallback<Lcom/evernote/edam/type/Note;>;"
    :cond_89
    invoke-virtual {v0, p0}, Lcom/evernote/client/android/EvernoteSession;->authenticate(Landroid/content/Context;)V

    goto :goto_62
.end method

.method private static traceEvent(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;I)V
    .registers 8
    .param p0, "context"    # Landroid/content/Context;
    .param p1, "event"    # Ljava/lang/String;
    .param p2, "articleTitle"    # Ljava/lang/String;
    .param p3, "articleId"    # I

    .prologue
    .line 211
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    .line 212
    .local v0, "map":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/String;>;"
    const-string v1, "ArticleName"

    invoke-virtual {v0, v1, p2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 213
    const-string v1, "ArticleId"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ""

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 214
    invoke-static {p0, p1, v0}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;Ljava/util/Map;)V

    .line 215
    return-void
.end method
